package com.ashley.stack;


/**
 * @Author ashley
 * @Date 2019/9/10 19:09
 */
public class LinkedListStackTest {
    public static void main(String[] args) {
        LinkedListStack stack = new LinkedListStack();

        stack.push(4);
        stack.push(5);
        stack.push(6);

        System.out.println("size=" + stack.getSize());//size=3

        System.out.println(stack.isEmpty());//false

        System.out.println(stack.pop());//6

        System.out.println("size=" + stack.getSize());//size=2

        System.out.println(stack.pop());//5
        System.out.println(stack.pop());//4

        System.out.println(stack.isEmpty());//true

    }
}

